﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SmartSpace.Core;
using SmartSpace.Workflow.DriveEvents;

namespace SmartSpace.Workflow
{
    public static class DriveEventFactory
    {
        public static Dictionary<string, IWorkflowDriveEvent> s_inputs = new Dictionary<string, IWorkflowDriveEvent>();

        static DriveEventFactory()
        {
            s_inputs.Add("sendtouser", new SendToUserDriveEvent());
            s_inputs.Add("sendtoself", new SendToSelfDriveEvent());
            s_inputs.Add("sendtoprevious", new SendToPreviousDriveEvent());
            s_inputs.Add("issuedtodepartment", new IssuedToDepartmentDriveEvent());
            s_inputs.Add("countersign", new Countersign());
        }

        public static IWorkflowDriveEvent Get(string type)
        {
            return s_inputs[type];
        }
    }
}
